// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_HR_TRAVEL_APPLICATION
// * CreateDate    : 2011/11/8 21:33:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/11/8 21:33:17
// * LastChanger   : 2011/11/8 21:33:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class HrTravelApplicationTable : TableInfo
    {
		public const string C_TableName = "HR_TRAVEL_APPLICATION";

        public const string C_APPLICATION_ID = "APPLICATION_ID";
        public const string C_TRAVEL_CODE = "TRAVEL_CODE";
		public const string C_DEPARTMENT_ID = "DEPARTMENT_ID";
		public const string C_PERSON_ID = "PERSON_ID";
		public const string C_START_DATE = "START_DATE";
		public const string C_END_DATE = "END_DATE";
		public const string C_DESTINATION = "DESTINATION";
		public const string C_TRAVEL_REASON = "TRAVEL_REASON";
		public const string C_REMARK = "REMARK";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_STATUS = "STATUS";
		
		public HrTravelApplicationTable()
        {
            _tableName = "HR_TRAVEL_APPLICATION";
        }
		
		protected static HrTravelApplicationTable _current;
        public static HrTravelApplicationTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new HrTravelApplicationTable();

            _current.Add(C_APPLICATION_ID, new ColumnInfo(C_APPLICATION_ID, "ApplicationId", true, typeof(string)));
            _current.Add(C_TRAVEL_CODE, new ColumnInfo(C_TRAVEL_CODE, "TravelCode", false, typeof(string)));
            _current.Add(C_DEPARTMENT_ID, new ColumnInfo(C_DEPARTMENT_ID,"DepartmentId", false, typeof(string)));
            _current.Add(C_PERSON_ID, new ColumnInfo(C_PERSON_ID,"PersonId", false, typeof(string)));
            _current.Add(C_START_DATE, new ColumnInfo(C_START_DATE,"StartDate", false, typeof(DateTime)));
            _current.Add(C_END_DATE, new ColumnInfo(C_END_DATE,"EndDate", false, typeof(DateTime)));
            _current.Add(C_DESTINATION, new ColumnInfo(C_DESTINATION,"Destination", false, typeof(string)));
            _current.Add(C_TRAVEL_REASON, new ColumnInfo(C_TRAVEL_REASON,"TravelReason", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo APPLICATION_ID
        {
            get { return this[C_APPLICATION_ID]; }
        }

        public ColumnInfo TRAVEL_CODE
        {
            get { return this[C_TRAVEL_CODE]; }
        }
		
		public ColumnInfo DEPARTMENT_ID
        {
            get { return this[C_DEPARTMENT_ID]; }
        }
		
		public ColumnInfo PERSON_ID
        {
            get { return this[C_PERSON_ID]; }
        }
		
		public ColumnInfo START_DATE
        {
            get { return this[C_START_DATE]; }
        }
		
		public ColumnInfo END_DATE
        {
            get { return this[C_END_DATE]; }
        }
		
		public ColumnInfo DESTINATION
        {
            get { return this[C_DESTINATION]; }
        }
		
		public ColumnInfo TRAVEL_REASON
        {
            get { return this[C_TRAVEL_REASON]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

